package com.ruoyi.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.system.domain.Reservations;

/**
 * 预约Service接口
 * 
 * @author guiye
 * @date 2023-08-29
 */
public interface IReservationsService extends IService<Reservations>
{
    /**
     * 查询预约
     * 
     * @param reservationId 预约主键
     * @return 预约
     */
    public Reservations selectReservationsByReservationId(Long reservationId);

    /**
     * 查询预约列表
     * 
     * @param reservations 预约
     * @return 预约集合
     */
    public List<Reservations> selectReservationsList(Reservations reservations);

    /**
     * 新增预约
     * 
     * @param reservations 预约
     * @return 结果
     */
    public int insertReservations(Reservations reservations);

    /**
     * 修改预约
     * 
     * @param reservations 预约
     * @return 结果
     */
    public int updateReservations(Reservations reservations);

    /**
     * 批量删除预约
     * 
     * @param reservationIds 需要删除的预约主键集合
     * @return 结果
     */
    public int deleteReservationsByReservationIds(Long[] reservationIds);

    /**
     * 删除预约信息
     * 
     * @param reservationId 预约主键
     * @return 结果
     */
    public int deleteReservationsByReservationId(Long reservationId);
}
